import http from '@/request/http.js'

// 登录方法
export const login = (username, password, code, uuid) =>{
	const data = {
		username,
		password,
		code,
		uuid
	}
	return http.post('/login', data)
}

// 获取用户详细信息
export const getInfo=()=> {
	return http.get('/getInfo')
}

// 退出方法
export const logout = () =>{
	return http.post('/logout')
}

// 获取验证码
export const getCodeImg = () => {
	return http.get('/captchaImage')
}
